<%- @page_title = _("Viewing Groups for %s", h(@teaching.title)) -%>
<h2><%= @page_title %></h2>
<%- unless @groups.empty? -%>
  <ul>
    <%- @groups.each do |g| -%>
      <li><%= link_to(h(g.name), group_path(@project, @teaching, g)) %> (<%= g.users.map {|u| h(u.name)}.join(', ') %>)</li>
    <%- end -%>
  </ul>
<%- else -%>
  <p><%= _('No group has been added, yet.') %></p>
<%- end -%>
<%- if @logged_user.is_teacher? -%>
  <hr />
  <%= link_to(_('Add a new group'), new_group_path(@project, @teaching)) %>
<%- end -%>
<hr />
<%= link_to(_("&laquo; Back to class"), class_path(@project, @teaching)) %>